package com.example.testapp

import com.qiantoon.networkdsl.base.IMoreUrlInfo
import com.qiantoon.networkdsl.http.BaseResponseBean
import okhttp3.RequestBody
import retrofit2.http.*

interface DoctorService {

    @POST("Comm/GetToken")
    suspend fun getToken(@Body body: RequestBody?): BaseResponseBean

    @POST("Login/Login")
    @FormUrlEncoded
    suspend fun login(@Field("LoginWay") LoginWay: String
              , @Field("Phone") PhoneNum: String
              , @Field("VerificationCode") VCode: String
              , @Field("Password") Password: String): BaseResponseBean


    @POST("HealthyCircle/QueryMyHealthyCircleList")
    @FormUrlEncoded
    @Headers("${IMoreUrlInfo.MORE_URL_HEADER_NAME}:${MoreUrlInfo.DOCTOR_HEALTHY}")
    suspend fun queryMyHealthyCircleList(
            @Field("PageIndex") pageIndex: String,
            @Field("PageSize") pageSize: String,
            @Field("State") state: String? = "",
            @Field("Sort") sort: String? = "",
            @Field("Orderby") orderBy: String? = ""
    ): BaseResponseBean



}